function changeStatus(objValue, origin) {
	// 有副作用会改变，origin
	origin.forEach(item => {
		item.isSelected = false
	})

	Object.keys(objValue).forEach(item => {
		let key = ''
		// debugger
		if (typeof objValue[item] == 'string' && item != 'color') {
			key = item + objValue[item].charAt(0).toUpperCase() +
				objValue[item].slice(1)
		} else {
			key = item
		}

		origin.forEach(itemy => {
			if (key == itemy.type) {
				itemy.isSelected = true
			}
		})

	})
	return origin
}

export {
	changeStatus
}